<template>
  <el-card class="box-card">
    <template #header>
      <div class="card-header">
        <span>会议统计</span>
      </div>
    </template>
    <div class="statistics-content">
      <el-row :gutter="20">
        <el-col :span="8">
          <div class="stat-item">
            <div class="stat-title">今日会议</div>
            <div class="stat-number">{{ todayMeetings }}</div>
          </div>
        </el-col>
        <el-col :span="8">
          <div class="stat-item">
            <div class="stat-title">本周会议</div>
            <div class="stat-number">{{ weekMeetings }}</div>
          </div>
        </el-col>
        <el-col :span="8">
          <div class="stat-item">
            <div class="stat-title">本月会议</div>
            <div class="stat-number">{{ monthMeetings }}</div>
          </div>
        </el-col>
      </el-row>
    </div>
  </el-card>
</template>

<script setup>
import { ref } from 'vue'

const todayMeetings = ref(0)
const weekMeetings = ref(0)
const monthMeetings = ref(0)

// TODO: 从API获取会议统计数据
</script>

<style lang="scss" scoped>
.statistics-content {
  padding: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 4px;

  .stat-title {
    color: #606266;
    font-size: 14px;
    margin-bottom: 10px;
  }

  .stat-number {
    color: #303133;
    font-size: 24px;
    font-weight: bold;
  }
}
</style>